import { objToArr } from '@/utils';
import { Select } from 'antd';

export default ({ options, ...extraProps }) => {
  return (
    <Select
      fieldNames={{ label: 'value', value: 'key' }}
      options={objToArr(options)}
      {...extraProps}
    />
  );
};
